/*
 *  bitmap.h
 *  Assignment2.2
 *
 *  Created by Dan Sverre Audne on 11/1/11.
 *  Copyright 2011 HiG. All rights reserved.
 *
 */
#ifndef BITMAP_H
#define BITMAP_H

class Bitmap
{
private:
	// Screen:
	SDL_Rect imgpos;
	enum {
		IMG_PNG,
		IMG_GIF,
		MAX_IMG
	};
protected:
	SDL_Surface *surface;					// Used for the screen window.
	
public:
	Bitmap(char *imgsrc, int x, int y, int w, int h);
	~Bitmap();
	SDL_Surface *load_img(char *file, int type);
	void blit(SDL_Surface *screen);
	void set_position(int o);
	SDL_Rect get_position();
	SDL_Surface *get_surface();
	void change(SDL_Surface *changeSurface);
};

#endif